package com.lagou.edu;

import com.lagou.edu.action.AnnotationAction;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.io.IOException;

/**
 * @author liangzj
 * @date 2021/5/19 21:13
 */
public class AnnotationConsumer {

    public static void main(String[] args) throws IOException, InterruptedException {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration.class);
        context.start();
        AnnotationAction annotationAction = context.getBean(AnnotationAction.class);

        annotationAction.doSleepMethod();

        System.out.println("running end...........");
        System.in.read();
    }
}
